#pragma once

#include <d3d9.h>
#include <d3dx9.h>
#include <DxErr.h>
#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")
#pragma comment(lib, "DxErr.lib")


struct GameAsset
{
	IDirect3DTexture9*	pObjTex;
	int					iBlitFrames;
	const char*			cszTexFileName;
	color				ColorKey;

	GameAsset(): pObjTex(NULL), iBlitFrames(1), cszTexFileName(NULL), ColorKey(0, 0, 0) {}
	GameAsset(IDirect3DTexture9* tex, int blitFrames, char* filename, color cKey)
	: pObjTex(tex)
	, cszTexFileName(filename)
	, ColorKey(cKey)
	{
		if(blitFrames > 0)
			iBlitFrames = blitFrames;
		else 
			iBlitFrames = 1;
	}
};